<?php
/**
 * Created by PhpStorm.
 * Date: 2017/3/31
 * Time: 14:02
 */

namespace App\Http\Controllers\VipChannel\Book\Transformers;

class BookTransformer
{
    public function transform($item)
    {
        return [
            'date'=>$item->date,
            'book_name' => $item->book_name,
            'send_order_number' => $item->send_order_number,
            'order_num' => $item->order_num,
            'pay_user_num' => $item->pay_user_num,
            'charge_arup' => $item->charge_arup,
            'phone'=>$item->phone,
            'success_order_num' => $item->success_order_num,
            'charge_amount' => $item->charge_amount,
            'charge_amount_yesterday' => $item->charge_amount_yesterday,
            'order_success_rate' => $item->order_success_rate,
            'distribution_channel_id' => $item->distribution_channel_id,
        ];
    }
}